{include app:admin.inc.header}
<!--tmpl-resource-->
{include app:admin.inc.top}


<div class="container-fluid content-body">
	<div class="main">
		<!-- left side start-->
		{include admin.inc.menu}
		<!-- left side end-->


		<!-- main content start-->
		<section class="right-section" id="right-section">
			<!-- start of inner-frame -->
			<div class="inner-iframe">

				<!-- page breadcrumb start-->
				{include admin.inc.bread}
				<!-- page "breadcrumb end-->
				<!-- Nav tabs -->
				<ul class="nav nav-tabs">

					<li {if $id==''}class="active"{/if}><a {if $id==''}href="javascript:void(0);"{else}href="{$add_url}"{/if}><i class="glyphicon glyphicon-plus"></i> 添加广告位</a></li>
					<li><a href="{$index_url}" ><i class="glyphicon glyphicon-th-list"></i> 广告位列表</a></li>
					{if $id != ''}<li class="active"><a href="javascript:void(0);"><i class="glyphicon glyphicon-edit"></i> 编辑广告位</a></li>{/if}

				</ul>
				<div class="inner-container">
					<form role="form" class="content-add-form" id="content-add-form" autocomplete="off">

						<!--tmpl-fields-->

						<!-- input -->
						<div class="form-group">
							<label >标题 </label>
							<input  dtype="" class="form-control" maxlength="50" name="data[title]" placeholder="标题" required cname="标题" value="{$item[title]}" />
						</div>
						<p class="help-block"></p>
						
						<!-- input -->
						<div class="form-group">
							<label >描述 </label>
							<input  dtype="" class="form-control" maxlength="255" name="data[summary]" placeholder="描述" required cname="描述" value="{$item[summary]}0" />
						</div>
						<p class="help-block"></p>
						
						<!-- input -->
						<div class="form-group">
							<label >宽 </label>
							<input  dtype="" class="form-control" maxlength="{maxlength}" name="data[width]" placeholder="宽" required cname="宽" value="{$item[width]}0" />
						</div>
						<p class="help-block"></p>
						
						<!-- input -->
						<div class="form-group">
							<label >高 </label>
							<input  dtype="" class="form-control" maxlength="{maxlength}" name="data[height]" placeholder="高" required cname="高" value="{$item[height]}0" />
						</div>
						<p class="help-block"></p>
						
						<!-- input -->
						<div class="form-group">
							<label >打开方式 </label>
							<input  dtype="" class="form-control" maxlength="{maxlength}" name="data[cate]" placeholder="打开方式" required cname="打开方式" value="{$item[cate]}0" />
						</div>
						<p class="help-block"></p>
						
						<!-- input -->
						<div class="form-group">
							<label >默认显示 </label>
							<input  dtype="" class="form-control" maxlength="{maxlength}" name="data[default_type]" placeholder="默认显示" required cname="默认显示" value="{$item[default_type]}0" />
						</div>
						<p class="help-block"></p>
						
						<!-- input -->
						<div class="form-group">
							<label >默认显示的内容 </label>
							<input  dtype="" class="form-control" maxlength="255" name="data[default_content]" placeholder="默认显示的内容" required cname="默认显示的内容" value="0{$item[default_content]}" />
						</div>
						<p class="help-block"></p>
						
						<!-- input -->
						<div class="form-group">
							<label >打开方式 </label>
							<input  dtype="" class="form-control" maxlength="{maxlength}" name="data[status]" placeholder="打开方式" required cname="打开方式" value="{$item[status]}0" />
						</div>
						<p class="help-block"></p>
						


						<!--tmpl-assocfields-->
						<div class="btn-group btn-group-or">
							<a href="{if $id==''}{$do_add_url}{else}{$do_edit_url}?id={$id}{/if}" class="btn btn-primary ajaxproxy"
								proxy='{"method":"post", "location":"{$index_url}"}'>提交保存</a>

						</div>
					</form><!-- content add form -->
				</div>
			</div><!-- end of inner -->
		</section>
	</div>
</div>
{include admin.inc.footer}

<!--tmpl-script-->

<!-- pagescript -->
<script type="text/javascript">
	seajs.use("admin/information_ad_placeadd",function (parameter){
		
		/**--tmpl-templatejavascript--**/
		
		<!--tmpl-templatejavascript-->
		parameter.upload_url="{$upload_url}";
		parameter.image_search_url="{$image_search_url}";
		parameter.image_list_url="{$image_list_url}";
		
		parameter.init();		
	});
</script>


<script id="assocpage" type="text/html">
<div class="text-right">
	<ul class="pagination blog-pagination">
		<li><a class="assoc-page" data-page="{[prev]}" href="javascript:void(0);">上一页</a></li> 
		{[loop pages page]}

		<li ><a class="assoc-page" data-page="{[page]}" {[if curr == page]}class="active"{[/if]} href="javascript:void(0)">{[page]}</a></li> 

		{[/loop]}
		<li><a class="assoc-page" href="javascript:void(0);" data-page="{[nexts]}">下一页</a></li> 
	</ul>	
</div>
</script>

</body>
</html>
